package action;
import com.opensymphony.xwork2.ActionSupport;
import entity.User;
/**
 * @author dingyuanwei
 * @version 建立時間：Dec 23, 20102:30:11 PM
 * 類別說明:
 */
public class UserAction extends ActionSupport {

	private String message;
	private User user;
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Override
	public String execute() throws Exception {
		if(getUser() !=null){
			message="您输入的信息为：用户名："+getUser().getUserName()+"密码："+getUser().getUserPassword();
			return SUCCESS;
		}else{
			return INPUT;
		}
	}
}
